package xyz.yudan.app.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xyz.yudan.app.dao.base.BaseUser;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by gamy on 2018/3/16.
 */

@RestController
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/get")
    public BaseUser getTestUser()
    {
        return new BaseUser();
    }


    @RequestMapping("/map")
    public Map getTestMapUser()
    {
        BaseUser BaseUser = new BaseUser();
        Map map = new HashMap<String, Object>();
        map.put("ret", 0);
        map.put("msg", "ok");
        map.put("data:", BaseUser);
        return map;
    }
}
